﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>组织机构 </title>
    <link href="../static/css/admin.css?v=6" rel="stylesheet" />
    <script src="../static/js/boot.js?v=2"></script>
    <script src="../static/js/admin.js?v=2"></script>
    <link href="../static/lib/zTree_v3/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" />
    <script src="../static/lib/zTree_v3/js/jquery.ztree.core.min.js"></script>
    <script src="../static/lib/zTree_v3/js/jquery.ztree.exhide.min.js"></script>
    <script src="../static/lib/zTree_v3/js/jquery.ztree.excheck.min.js"></script>
    <script src="../static/lib/zTree_v3/js/jquery.ztree.exedit.min.js"></script>
    <script src="../static/lib/zTree_v3/demo/js/fuzzysearch.js"></script>
    <style>
        #zTreesso {
            width: 100%;
            height: 33px;
            margin-top: 7px;
            margin-left: 5px;
            border: 1px solid #ccc;
        }
        .gridPanel {
            margin-top: 10px;
            margin-left: 15px;
            margin-right: 30px;
        }
    </style>
    <script>var apiUrl = "/api/Setting/";
        $(function () {
            initControl();
        })
        function initControl() {
            $.ajax({
                url: apiUrl + "AppSettings" ,
                dataType: "json",
                async: false,
                beforeSend: function (jqXHR) {
                    jqXHR.setRequestHeader("Authorization", 'Bearer ' + window.LS.get("hdjtoken"));
                },
                success: function (ret) {
                    $("#form1").formSerialize(ret);
                }
            });
        }
        function submitForm() {
            if (!$('#form1').formValid()) {
                return false;
            }
            var aurl = apiUrl + "AppSettings";
            var paramform = $("#form1").formSerialize();
            $.submitForm({
                url: aurl,
                param: paramform,
                paramType: true,
                success: function () {
                }
            })
        }</script>
</head>
<body style="margin:0px;padding:0px;overflow:hidden;">
    <form id="form1" class="form-inline" role="form" method="post">
        <div class="gridPanel">
            <ul id="myTab" class="nav nav-tabs">
                <li class="active">
                    <a href="#app" data-toggle="tab">系统配置</a>
                </li>
                <li><a href="#seo" data-toggle="tab">SEO</a></li>
                <li><a href="#smtp" data-toggle="tab">邮件配置</a></li>
            </ul>
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane fade in active" id="app">
                    <table class="form">
                        <tr>
                            <th class="formTitle">客户QQ1</th>
                            <td class="formValue">
                                <input id="CustomerServiceQQ1" name="CustomerServiceQQ1" type="text"
                                       value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                        <tr>
                            <th class="formTitle">客户QQ1</th>
                            <td class="formValue">
                                <input id="CustomerServiceQQ2" name="CustomerServiceQQ2" type="text"
                                       value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                        <tr>
                            <th class="formTitle">创始人</th>
                            <td class="formValue">
                                <input id="Admin" name="Admin" type="text"
                                       value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                        <tr>
                            <th class="formTitle">创始人密码</th>
                            <td class="formValue">
                                <input id="AdminPwd" name="AdminPwd" type="text"
                                       value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                        <tr>
                            <th class="formTitle">统计代码</th>
                            <td class="formValue">
                                <input id="AdminPwd" name="AdminPwd" type="text"
                                       value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="tab-pane fade" id="seo">
                    <table class="form">
                        <tr>
                            <th class="formTitle">站点名称</th>
                            <td class="formValue">
                                <input id="DefaultTitle" name="DefaultTitle" type="text" value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                        <tr>
                            <th class="formTitle">站点关键字</th>
                            <td class="formValue">
                                <input id="DefaultMetaKeywords" name="DefaultMetaKeywords" type="text" value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                        <tr>
                            <th class="formTitle">站点描述</th>
                            <td class="formValue">
                                <input id="DefaultMetaDescription" name="DefaultMetaDescription" type="text" value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="tab-pane fade" id="smtp">
                    <table class="form">
                        <tr>
                            <th class="formTitle">服务器地址</th>
                            <td class="formValue">
                                <input id="MailServer" name="MailServer" type="text"
                                       value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                        <tr>
                            <th class="formTitle">邮件用户名</th>
                            <td class="formValue">
                                <input id="MailUserName" name="MailUserName" type="text"
                                       value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                        <tr>
                            <th class="formTitle">邮件密码</th>
                            <td class="formValue">
                                <input id="MailPassword" name="MailPassword" type="text"
                                       value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                        <tr>
                            <th class="formTitle">邮件名称</th>
                            <td class="formValue">
                                <input id="MailName" name="MailName" type="text"
                                       value="" class="form-control " autocomplete="off" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>

        <div class="gridPanel" style="margin-left: 22px;margin-top: 22px;">
            <input id="but_submit" name="but_submit" type="submit" value="保存" onclick="submitForm()" class="btn btn-primary " />
        </div>
    </form>
</body>
</html>